package com.itheima.mm.wx.mapper;

import com.itheima.mm.pojo.QuestionItem;
import com.itheima.mm.pojo.Tag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Description QuestionMapper
 * @Author Yc
 * @Date 2024-06-27
 */
@Mapper
public interface QuestionMapper {

    /**
     * 获取题目列表
     * @param queryParams
     * @return
     */
    List<Map> selectQuestionListByQueryParam(Map<String,Object> queryParams);

    /**
     * 根据QuestionId查询标签列表
     * @param id
     * @return
     */
    List<Tag> selectTagsByQuestionId(Integer id);

    /**
     * 根据QuestionId查询题目选项列表
     * @param id
     * @return
     */
    List<QuestionItem> selectQuestionItemById(Integer id);
}
